package com.niit.schoolhub.system.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 博客-用户token信息
 * </p>
 *
 * @author kaguya
 * @since 2021-11-27
 */
@TableName("yesapi_persistent_logins")
@ApiModel(value = "YesapiPersistentLogins对象", description = "博客-用户token信息")
public class YesapiPersistentLogins implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String username;

    private String series;

    private String token;

    private LocalDateTime lastUsed;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getSeries() {
        return series;
    }

    public void setSeries(String series) {
        this.series = series;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public LocalDateTime getLastUsed() {
        return lastUsed;
    }

    public void setLastUsed(LocalDateTime lastUsed) {
        this.lastUsed = lastUsed;
    }

    @Override
    public String toString() {
        return "YesapiPersistentLogins{" +
        "id=" + id +
        ", username=" + username +
        ", series=" + series +
        ", token=" + token +
        ", lastUsed=" + lastUsed +
        "}";
    }
}
